<template>
  <div>
    <el-form :model="{}" :inline="true" label-width="60px">
      <el-form-item label="操作栏" prop="" v-hasPermi="['system_information_add']">
        <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd">发送站内信息</el-button>
      </el-form-item>
    </el-form>
    <template v-if="open">
      <CreatedAdv :title="title" @handleUpdate="handleUpdate"></CreatedAdv>
    </template>
  </div>
</template>

<script>
export default {
  components: {
    CreatedAdv: () => import('../form/CreatedAdv.vue')
  },
  data () {
    return {
      title: '发送站内信息',
      open: false
    }
  },
  methods: {
    /** 新增按钮操作 */
    handleAdd () {
      this.open = true
    },
    /** 修改按钮操作 */
    handleUpdate (row) {
      this.open = false
      this.$emit('selectList')
    },
    /** 删除按钮操作 */
    handleDelete (row) {

    },
  }
}
</script>

<style>

</style>